﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

using CodeSuperior.Lucifure;

namespace Lucifure.Stash.Test.Exceptions
{
	// -----------------------------------------------------------------------------------------------------------------
	// -----------------------------------------------------------------------------------------------------------------

	public
	class MorphImposter
	{
	}

	// -----------------------------------------------------------------------------------------------------------------
	// -----------------------------------------------------------------------------------------------------------------

	[StashEntity]
	public 
	class DoesNotImplementIMorph			:	KeyDataExplicit
	{
			[Stash(Morpher=typeof(MorphImposter))]
			public
			int									ToMorph;
	}	

	// -----------------------------------------------------------------------------------------------------------------
	// -----------------------------------------------------------------------------------------------------------------

	public
	partial 
	class TestForExceptions 
	{
		[TestMethod]
		public 
		void 
		ExceptionDoesNotImplementIMorph() 
		{
			Common<DoesNotImplementIMorph>(StashError.DoesNotImplementIMorph);
		}
	}

	// -----------------------------------------------------------------------------------------------------------------
	// -----------------------------------------------------------------------------------------------------------------
}
